<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>案例2 - 外边距折叠</title>
    <style>
        p {
            color: #f55;
            background: #fcc;
            width: 200px;
            line-height: 100px;
            text-align: center;
        }

        .p1 {
            margin-bottom: 50px;
        }

        .p2 {
            margin-top: 100px;
        }
    </style>
</head>

<body>
    <p class="p1">zhufeng</p>
    <p class="p2">zhufeng</p>
</body>

</html>